<?
	$seq = $param->getNumber('seq',"");
	if ($seq!="")
	{
		$db = GetDefaultConnection();
		$sql = sprintf("SELECT * FROM TB_ORDER WHERE ORDER_SEQ=%d", $seq);
		$list = $db->queryList($sql);

		if ($list != null)
		{
			$row = & $list->next();
			$jseq = $row->getNumber('JBNH_SEQ');
			$otype = $row->getNumber('ORDER_TYPE');
			$oitem1 = $row->getNumber('ORDER_ITEM1');
			$oitem2 = $row->getNumber('ORDER_ITEM2');
			$ograde2 = $row->getNumber('ORDER_GRADE2');
			$ostandard2 = $row->getNumber('ORDER_STANDARD2');
			$oweight2 = $row->getNumber('ORDER_WEIGHT2');
			$onumber = $row->getNumber('ORDER_NUMBER');
			$ototal = $row->getNumber('ORDER_TOTAL');
			$odestination1 = $row->getNumber('ORDER_DESTINATION1');
			$oarrivaldate = $row->getString('ORDER_ARRIVALDATE');;
			$oarrivaltime = $row->getString('ORDER_ARRIVALTIME');
			$odate = $row->getString('ORDER_DATE');
		}
	}
	$ndate = ($odate=="") ? date('Y-m-d') : $odate;
?>